<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>最简单的上传方式</title>
    <!-- 此文件为了显示Demo样式，项目中不需要引入 -->
    <link href="../../assets/code/demo.css" rel="stylesheet">
    <link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
    <link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
</head>
<body>
    <div class="demo-content">
        <div class="row">
            <div class="span8">
                <div id="J_Uploader">
                </div>
            </div>
        </div>
        <script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script>
        <script src="http://g.alicdn.com/bui/seajs/2.3.0/sea.js"></script>
        <script src="http://g.alicdn.com/bui/bui/1.1.21/config.js"></script>
        <!-- script start -->
        <script type="text/javascript">
        BUI.use('bui/uploader', function(Uploader) {

            /**
             * 返回数据的格式
             *
             *  默认是 {url : 'url'},否则认为上传失败
             *  可以通过isSuccess 更改判定成功失败的结构
             */
            var uploader = new Uploader.Uploader({
                render: '#J_Uploader',
                url: '../../../test/upload/upload.php'
            }).render();
        });
        </script>
        <!-- script end -->
    </div>
</body>

</html>
